package model

// UserGroup 用户分组表
type UserGroup struct {
	Current
	Pid    int    `json:"pid" gorm:"type:int;comment:'上级分组'"`
	Name   string `json:"name" gorm:"type:varchar(100);comment:'组名'"`
	Rules  string `json:"rules" gorm:"type:text;comment:'权限规则ID'"`
	Status string `json:"status" gorm:"type:enum('1','0');comment:'状态:0=禁用,1=启用'"`
}

func (UserGroup) TableName() string {
	return "user_group"
}
